package string;
//char charAt(int index)
//根据位置找字符
public class CharAtDemo {
    public static void main(String[] args) {
        String str="thinking in java";
        //char chr=str.charAt(16);//StringIndexOutOfBoundsException
        char chr=str.charAt(10);
        System.out.println(chr);
    }
}
